import streamlit.web.cli as stcli
import sys
import os

def main():
    # 设置 sys.argv 来模拟命令行调用
    sys.argv = ["streamlit", "run", "app.py", "--global.developmentMode=false"]
    sys.exit(stcli.main())

if __name__ == "__main__":
    main()